package work5;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userServiceImpl")
public class UserServiceImpl implements UserService {

	@Autowired
	UserMapper usermapper;
	
	@Override
	public List<User> getUserById(List<Integer> list) {
		
		return usermapper.getUserById(list);
	}

	@Override
	public List<User> getUserByUserName(String name) {
		// TODO Auto-generated method stub
		return usermapper.getUserByUserName(name);
	}

	@Override
	public List<User> getUserPagination(PageHelper page) {
		// TODO Auto-generated method stub

		return usermapper.getUserPagination(page);
	}

	@Override
	public int updUserById(User user) {
		// TODO Auto-generated method stub
		return usermapper.updUserById(user);
	}

	@Override
	public List<User> getOrdersByUserName(String username) {
		// TODO Auto-generated method stub
		return usermapper.getOrdersByUserName(username);
	}

	@Override
	public List<User> getItemByUserName(String username) {
		// TODO Auto-generated method stub
		return usermapper.getItemByUserName(username);
	}

	@Override
	public int insertUser(User user) {
		// TODO Auto-generated method stub
		return usermapper.insertUser(user);
	}

	 

}
